package co.fitstart.admin.service.impl;

import org.springframework.stereotype.Service;

import com.demo2do.core.persistence.annotation.Dynamic;

import co.fitstart.admin.dao.ServiceQrcodeDao;
import co.fitstart.admin.service.ServiceQrcodeService;
import co.fitstart.entity.principal.ServiceQrcode;

/**
 * 
 * @author wangliwang
 *
 */
@Service("serviceQrcodeService")
public class ServiceQrcodeServiceImpl implements ServiceQrcodeService{
    
    @Dynamic
    private ServiceQrcodeDao serviceQrcodeDao;

    /* (non-Javadoc)
     * @see co.fitstart.admin.service.ServiceQrcodeService#load(java.lang.String)
     */
    public ServiceQrcode load(String alias) {
        return serviceQrcodeDao.load(alias);
    }

    /* (non-Javadoc)
     * @see co.fitstart.admin.service.ServiceQrcodeService#delete(java.lang.Long)
     */
    public void delete(Long qrcodeId) {
        serviceQrcodeDao.changeStatus(qrcodeId);
    }

}
